USE [MSE6DB]
GO
exec sp_changedbowner "sa"
GO
CREATE USER [MSE6] FOR LOGIN [NT AUTHORITY\SYSTEM] WITH DEFAULT_SCHEMA=[dbo]
GO
CREATE ROLE [ServiceEngine] AUTHORIZATION [MSE6]
GO
EXEC sys.sp_executesql N'CREATE SCHEMA [ServiceEngine] AUTHORIZATION [ServiceEngine]'
GO
ALTER USER [MSE6] WITH DEFAULT_SCHEMA=[ServiceEngine]
GO
EXEC sp_addrolemember N'ServiceEngine', N'MSE6'
GO
